vgabios: Reduce stack usage getting mode informations
authorFrediano Ziglio <frediano.ziglio@citrix.com>
Mon, 7 May 2012 12:38:23 +0000 (13:38 +0100)
committerFrediano Ziglio <frediano.ziglio@citrix.com>
Mon, 7 May 2012 12:38:23 +0000 (13:38 +0100)
commit4da31be1202e9d82f4a0c5b7cb79ec36a941598c
treec15ef6ed7d6a8a1bb240fe96c7396641c5000206
parenta8ceaf5c72e7cd80a393622d047bb17ed7ffab65
vgabios: Reduce stack usage getting mode informations

Informations are stored in a structure that is smaller than final one.
Previous code copy this structure to stack extending with zeroes then
update it and copy to caller while now the not-extended version is
copied into stack and then is extended during copy reducing stack
usage.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
tools/firmware/vgabios/vbe.c